package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysMemberPackageMapper;
import com.ruoyi.system.domain.SysMemberPackage;
import com.ruoyi.system.service.ISysMemberPackageService;

/**
 * 会员套餐关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class SysMemberPackageServiceImpl implements ISysMemberPackageService 
{
    @Autowired
    private SysMemberPackageMapper sysMemberPackageMapper;

    /**
     * 查询会员套餐关系
     * 
     * @param id 会员套餐关系主键
     * @return 会员套餐关系
     */
    @Override
    public SysMemberPackage selectSysMemberPackageById(Long id)
    {
        return sysMemberPackageMapper.selectSysMemberPackageById(id);
    }

    /**
     * 查询会员套餐关系列表
     * 
     * @param sysMemberPackage 会员套餐关系
     * @return 会员套餐关系
     */
    @Override
    public List<SysMemberPackage> selectSysMemberPackageList(SysMemberPackage sysMemberPackage)
    {
        return sysMemberPackageMapper.selectSysMemberPackageList(sysMemberPackage);
    }

    /**
     * 新增会员套餐关系
     * 
     * @param sysMemberPackage 会员套餐关系
     * @return 结果
     */
    @Override
    public int insertSysMemberPackage(SysMemberPackage sysMemberPackage)
    {
        return sysMemberPackageMapper.insertSysMemberPackage(sysMemberPackage);
    }

    /**
     * 修改会员套餐关系
     * 
     * @param sysMemberPackage 会员套餐关系
     * @return 结果
     */
    @Override
    public int updateSysMemberPackage(SysMemberPackage sysMemberPackage)
    {
        return sysMemberPackageMapper.updateSysMemberPackage(sysMemberPackage);
    }

    /**
     * 批量删除会员套餐关系
     * 
     * @param ids 需要删除的会员套餐关系主键
     * @return 结果
     */
    @Override
    public int deleteSysMemberPackageByIds(Long[] ids)
    {
        return sysMemberPackageMapper.deleteSysMemberPackageByIds(ids);
    }

    /**
     * 删除会员套餐关系信息
     * 
     * @param id 会员套餐关系主键
     * @return 结果
     */
    @Override
    public int deleteSysMemberPackageById(Long id)
    {
        return sysMemberPackageMapper.deleteSysMemberPackageById(id);
    }
}
